<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>评论</title>
</head>
<body>
     <div style="width: 600px;height: 100%">
         <div>
          <p align="center">有您的评论,才能作的更好！</p>
         </div>
         <div style="width: 800px">
             评论
             <form action="/save" method="post">
                 <p id="id" th:name="id" hidden></p>
                 <p id="parentid" th:name="parentid" hidden></p>
             <textarea style="height: 92px;width: 690px;" placeholder="写下你的评论？"spellcheck="false" name="content" id="content">
             </textarea>
              <button type="submit" th:align="center">提交评论</button>
             </form>
         </div>
         <div th:each="comments:${list}">
             <div th:text="${comments.id}" style="display: none"></div>
             <div th:text="${comments.getUserid()}" style="display: none"></div>
             <p><span th:text="${comments.getNickname()}"></span> &nbsp;&nbsp;<span th:text="${comments.getCreatedatetime()}"></span></p>
            <div th:text="${comments.getContent()}"></div>
            <p STYLE="padding-left: 450px"> 点赞 <span th:text="${comments.getLikenum()}"></span><a th:href="@{/delOne/(id=${comments.getId()})}">&nbsp;删除</a></p>
             <div>
                 <div>
                     <a href="#" >回复·</a><a href="#" id="but"><span th:text="${comments.getReplynum()}"></span>>>></a>


                 </div>
             </div>
             <hr>
         </div>

     </div>

</body>
</html>